Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632702 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control

font/ cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control/font/
1 Items
  • sans.ttf
  • assets/ cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control/assets/
    1 Items
  • speed.png
  • style.css cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control/style.css
    110 Views
    0 Comments
    * {
    box-sizing: border-box;
    }

    @font-face {
    font-family: "sans";
    src: url(font/sans.ttf);
    }
    index.html cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control/index.html
    323 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <link rel="shortcut icon" href="assets/speed.png" type="image/x-icon">
    script.js cody/swapnilsparsh/30DaysOfJavaScript/17 - Text Speed Control/script.js
    118 Views
    0 Comments
    const text = document.getElementById("text");
    const speedEl = document.getElementById("speed");
    const prog = "30 Days of JavaScript";
    let idx = 1;
    let speed = 300 / speedEl.value;

    // initial call
    writeText();